﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using PMSA.Framework.Log;

public partial class Admin_Uc_News_GroupNewsManager : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnAdd_Click(object sender, EventArgs e)
    {
        try
        {
            new GroupNews().Insert(txtGroupProductName.Text, cbxGroupProductActive.Checked ? 1 : 0);
        }
        catch (Exception ex)
        {
            CLogManager.Write("GroupNewsManager.btnAdd_Click", ex.ToString(), "ADMIN");
        }
    }
}